import request from '@/utils/request'

// 查询实操训练试卷列表
export function listOperationTrain(query) {
  return request({
    url: '/manager/operationTrain/list',
    method: 'get',
    params: query
  })
}

// 查询实操训练试卷详细
export function getOperationTrain(trainId) {
  return request({
    url: '/manager/operationTrain/' + trainId,
    method: 'get'
  })
}

// 新增实操训练试卷
export function addOperationTrain(data) {
  return request({
    url: '/manager/operationTrain',
    method: 'post',
    data: data
  })
}

// 修改实操训练试卷
export function updateOperationTrain(data) {
  return request({
    url: '/manager/operationTrain',
    method: 'put',
    data: data
  })
}

// 删除实操训练试卷
export function delOperationTrain(trainId) {
  return request({
    url: '/manager/operationTrain/' + trainId,
    method: 'delete'
  })
}

export function getTableColumnList() {
  return request({
    url: '/manager/operationTrain/tableColumnList',
    method: 'GET',
  })
}

export function getOperationTrainDeptList(params) {
  return request({
    url: '/manager/operationTrain/deptList',
    method: 'GET',
    params
  })
}

export function getOperationTrainCarList(params) {
  return request({
    url: '/manager/operationTrain/deptCarList',
    method: 'get',
    params
  })
}

